#include<bits/stdc++.h>
using namespace std;
const int N=2e5+10;
int T,n,ans=0;
pair<int,bool> a[N];
int dfs(int ss){
    for(bool i=0;i<=1;++i){
        a[N].second=i;
        if(ss==n){

        }
        dfs(ss+1);
    }
}
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    scanf("%d",&T);
    for(int i=0;i<T;++i){
        scanf("%d",&n);
        for(int i=1;i<=n;++i){
            scanf("%d",&a[i].first);
        }
        dfs(1);
        printf("%d",ans);
    }
    return 0;
}
